class People:
    name = "" #成员变量 名字
    age = 0 #成员变量 年龄
    #成员方法
    def sys(self):
        print("name:", self.name, "age:", self.age)


    def __init__(self, name, age):
        self.name = name
        self.age = age

people = People()
people.name = "tom"
people.age = 18
people.sys()